package miniMVC.patterns
{
	import miniMVC.i.Ilistener;
	
	/**
	 * 监听者
	 * @author Pelephone
	 * @website http://cnblogs.com/pelephone
	 * @email pelephone@163.com
	 */
	public class Listener extends Binder implements Ilistener
	{
		public function Listener(myName:String){
			super(myName);
		}
		
		public function addFacadeListener(type:String, listener:Function
										  , priority:int=0, useWeakReference:Boolean=false):void
		{
			facade.addEventListener(type,listener,false,priority,useWeakReference);
		}
		
		public function removeFacadeListener(type:String, listener:Function):void
		{
			facade.removeEventListener(type,listener);
		}
	}
}